from selenium import webdriver
from selenium.webdriver.common.by import By
import  time


driver = webdriver.Chrome()
driver.get('https://www.baidu.com')

print(driver.name)
print(driver.current_url)
# print(driver.page_source)
print(driver.current_window_handle)

driver.find_element(By.LINK_TEXT,'新闻').click()

print(driver.current_window_handle)











time.sleep(3)
driver.quit()



